package com.skiving.cloud.workflow.serverclient;

import com.skiving.cloud.common.utils.ReturnT;
import com.skiving.cloud.workflow.api.TaskParam;
import org.noear.nami.annotation.NamiBody;
import org.noear.nami.annotation.NamiClient;
import org.noear.nami.annotation.NamiMapping;

@NamiClient(name = "admin", group = "DEFAULT_GROUP", path = "/workflow/process", fallback = ProcessNamiServiceFallback.class)
public interface ProcessNamiService {
    /**
     * 流程提交方法
     * @param taskParam 参数
     * @return 结果
     */
    @NamiMapping("/submitTask")
    ReturnT<String> submitTask(@NamiBody TaskParam taskParam);
}
